Skip to content

Conversation

pditommaso
Copy link
Member

Summary

  • Add hidden -template CLI option to nextflow plugin create command for specifying template version
  • Support both Git tags (starting with 'v') and branches for template selection
  • Default template version set to v0.3.0
  • Improve PluginRefactor.normalizeToClassName() to remove 'Nf' prefix from class names
  • Add comprehensive test coverage for the new functionality

Changes Made

  1. CmdPlugin.groovy: Added -template parameter with logic to handle tags vs branches
  2. PluginRefactor.groovy: Updated normalizeToClassName() to remove 'Nf' prefix only (not anywhere in string)
  3. Test Coverage: Added test cases validating prefix removal behavior

Test plan

  • Existing tests pass
  • New test cases validate 'Nf' prefix removal logic
  • Code compiles successfully
  • Git clone logic handles both tags and branches appropriately

🤖 Generated with Claude Code

…normalization

- Add hidden -template CLI option to specify plugin template version
- Support both tags (starting with 'v') and branches for template selection
- Default template version set to v0.3.0
- Update PluginRefactor to remove 'Nf' prefix from normalized class names
- Add comprehensive tests for prefix removal logic

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit abe437e
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6899cbde5d502200082e21ca

@pditommaso pditommaso merged commit c2c879d into master Aug 12, 2025
22 checks passed
@pditommaso pditommaso deleted the plugin-template-version-option branch August 12, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant